home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4257 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.4 KB  |  56 lines

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Bitfieldinsert?
  5. Date: 26 Feb 1996 16:44:39 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Message-ID: <4gso1n$2l0@maureen.teleport.com>
  8. References: <38232552@kone.fipnet.fi> <4gh0gt$6ll@maureen.teleport.com> <38232647@kone.fipnet.fi>
  9. NNTP-Posting-Host: julie.teleport.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Jyrki Saarinen (jsaarinen@kone.fipnet.fi) wrote:
  13.  
  14. : >  Trying to find correct gouraud shading code (Wich 'nobody' seem to do)
  15. : >  I saw a post saying that he can do gouraud on a PC at .25 cycle per
  16. : >  pixel. So I guess this as been done already , and you can probably get 
  17. : > áthe source code .. but then its for the x86 :)
  18.  
  19. : Hmm, any ideas how? That would be 4 pixels per one instruction.. 
  20.  
  21.  shading table and using 32bit move.
  22.  
  23. : >  Well, it would be a ham6 screen... the rendering is done in interleaved
  24. : >  componant: line only 4bit red, line 1 only 4bit of green, line 2 4bit
  25. : >  blue, line 3 4bit red etc... then this is c2p in the lower 4planne of
  26. : >  a 256x300 interlaced screen (only 256x150 4bit is c2p per feild.)
  27. : >  c2p a 256x150 screen 4bit take ~11ms on a 030 (cpu only).
  28.  
  29. : Wow, some code please.. On the other hand, I am not 100% sure
  30. : if the true color mode has actually some use. Can a fast 24b
  31. : to HAM8 conversion be done? A long per pixel would be nice..
  32.  
  33.  I was talking about ham6, 4bit per componant not 24...
  34.  This mean you use a 4bit plain c2p routine...
  35.  ~18ms for 320x200 cpu only. 25mhz 030.
  36.  Since its interleaved when you render true color you switch source
  37.  componant depanding on the row you render. The result is something
  38.  like "transgresion2" (If you have a PC check it out, it does 6bit
  39.  per componant ).
  40.  The power required to do this on an amiga is render in 4bit with
  41.  source switching (no overhead really, happen once per scan line and is
  42.  only getting one of 3 pointer), and 4bit c2p to a ham6 screen with the
  43.  upper 2 bit preset.
  44.  The result is TV style 12bit color res with 256*100 spacial res
  45.  on a 6bit 256*300 ham6 screen using 4bit per pixel.
  46.  
  47. : >  Have you seen Transgression2 on the PC? they use vertical componant
  48. : >  interleave ... ok they have 64shade per componant, OCS only as 16.
  49. : >  But you can get dithering for free.
  50.  
  51. : The ray tracing 64k intro? 
  52.  
  53.  Yes... this 8bit mode is equivalent to an ham6 mode.
  54.  
  55.  Stephan
  56.